<?php

namespace Common\Bundle\UserBundle\Form;

use Symfony\Component\Form\FormBuilderInterface;
use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType;

class RegistrationFormType extends BaseType
{
  public function buildForm(FormBuilderInterface $builder, array $options)
  {
     parent::buildForm($builder, $options);

    // add your custom field
    $builder->add('nom', null, array('label' => 'Nom :', 'translation_domain' => 'FOSUserBundle'));
    $builder->add('prenom', null, array('label' => 'Prénom :', 'translation_domain' => 'FOSUserBundle'));
    $builder->add('motDePasseHorsLigne', 'password', array('label' => 'Code hors ligne :', 'translation_domain' => 'FOSUserBundle'));
    
  }

  public function getName()
  {
     return 'common_user_registration';
  }
}